from django.urls import path, include
from rest_framework.routers import SimpleRouter

from apps.app_tx_meeting.api_viewsets import (
    TxCorpMeetingViewSet,
    MeetingRoomReservationViewSet,
    MeetingRoomIntervalsViewSet,
    MeetingRoomConfigViewSet,
    MeetingUserViewSet,
    ConfigsReserveTimesViewSet,
    ReserveTermsConditionsViewSet,
    MeetingRoomUsableViewSet,
    PreMeetingNoticeTemplateViewSet,
    NoShowRestrictViewSet,
    NoShowViewSet,
    NoShowWhitelistViewSet,
)


app_name = 'app_tx_meeting'


no_slash_router = SimpleRouter(trailing_slash=False)

no_slash_router.register(r'v1/corp/meetings', TxCorpMeetingViewSet, basename='v1-corp-meeting')
no_slash_router.register(r'meeting/reservation', MeetingRoomReservationViewSet, basename='meeting-reservation')
no_slash_router.register(r'meeting-room/intervals', MeetingRoomIntervalsViewSet, basename='room-intervals')
no_slash_router.register(r'meeting-room/usable', MeetingRoomUsableViewSet, basename='room-usable')
no_slash_router.register(r'meeting-user', MeetingUserViewSet, basename='meeting-users')
no_slash_router.register(r'configs/meeting-room', MeetingRoomConfigViewSet, basename='configs-meeting-room')
no_slash_router.register(r'configs/reserve-times', ConfigsReserveTimesViewSet, basename='configs-reserve-times')
no_slash_router.register(r'reserve/terms-conditions', ReserveTermsConditionsViewSet, basename='terms-conditions')
no_slash_router.register(
    r'configs/notice-template/pre-meeting', PreMeetingNoticeTemplateViewSet, basename='configs-notice-pre-meeting')
no_slash_router.register(r'meeting/noshow-restrict', NoShowRestrictViewSet, basename='noshow-restrict')
no_slash_router.register(r'meeting/noshow', NoShowViewSet, basename='noshow')
no_slash_router.register(r'meeting/noshow-whitelist', NoShowWhitelistViewSet, basename='noshow-whitelist')


urlpatterns = [
    path('', include(no_slash_router.urls)),
]
